<template>
	<view class="empty-content">
		<!-- <image class="empty-content-image" :src="setSrc" mode="aspectFit"></image> -->
		<image class="empty-image" src="../static/img/yuncang/cloud_no_order.png" mode="aspectFit"></image>
		<view class="empty-text">暂无相关订单</view>
		<!-- <view class="empty-tit">暂无相关订单，立即下单</view> -->
		<!-- <view class="backIndex" @click="back">返回首页</view> -->
	</view>
</template>

<script>
	export default {
		props: {
			src: {
				type: String,
				default: 'empty'
			},
		},

		data() {
			return {
				typeSrc: {
					empty: ''
				},
			}
		},

		computed: {
			setSrc() {
				return this.typeSrc[this.src];
			},
		},
		methods:{
			back(){
				uni.navigateBack({
					
				})
			}
		}
	}
</script>

<style lang="scss">
	.empty-content {
		display: flex;
		align-items: center;
		justify-content: center;
		flex-direction: column;
		
		position: fixed;
		left: 0;
		top: 0;
		right: 0;
		bottom: 0;
		background: $page-color-base;
		padding-bottom: 120upx;

		&-image {
			width: 200upx;
			height: 200upx;
		}
	}
	.empty-image{
		width: 200upx;
		height: 200upx;
	}
	.empty-text{
		font-size: 32upx;
		font-family: Source Han Sans CN;
		font-weight: 500;
		color: #D14798;
		line-height: 40px;
	}
	.empty-tit{
		font-size: 16px;
		font-family: PingFang SC;
		font-weight: 400;
		color: rgba(153,153,153,1);
		line-height: 40px;
	}
	.backIndex{
		width:300upx;
		height:60upx;
		background: #E6E6E6;
		border-radius:30px;
		font-size:28upx;
		font-family:PingFang SC;
		font-weight:500;
		color:rgba(102,102,102,1);
		line-height:56upx;
		text-align: center;
	}
</style>
